resistance of cube problem